// 解决click在移动端延迟3m问题
import FastClick from 'fastclick'
import Vue from 'vue'
import { Toast, InfiniteScroll } from 'mint-ui';  //按需引入部分组件
if ('addEventListener' in document) {
  document.addEventListener('DOMContentLoaded',
    function () {
      FastClick.attach(document.body)
    },
    false)
}

Vue.prototype.$toast = Toast;

// 全局注册组件
export default {
  install: function (Vue, options) {
    Vue.use(InfiniteScroll)
  }
}

